﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ANZ_AIM_GUI.Utils;
using ANZ_AIM_DAL;
using ANZ_AIM_BLL;
using ANZ_AIM_BLL.Model;
using log4net;

namespace ANZ_AIM_GUI
{
    public partial class frmDataSaleInfoUpload : Form
    {
        //log4net
        private static readonly ILog logger = LogManager.GetLogger(typeof(frmDataSaleInfoUpload));

        public frmDataSaleInfoUpload()
        {
            InitializeComponent();
        }

        public frmDataSaleInfoUpload(string batchFileID)
            : this()
        {
            try
            {
                SalePIPBLL salePIPBll = new SalePIPBLL();
                DataTable dt = salePIPBll.GetByBatchFileSaleInfoID(batchFileID);

                dgvData.DataSource = null;
                dgvData.Columns.Clear();
                dgvData.DataSource = dt;
                dgvData.AutoResizeColumns();
            }
            catch (Exception ex) { throw ex; }
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
